﻿using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase.Protocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETS_FinancialData_sync_toolsForServer
{
    public class Heart : CommandBase<TelnetSession, StringRequestInfo>
    {
        public override void ExecuteCommand(TelnetSession session, StringRequestInfo requestInfo)
        {
            Console.WriteLine("Received Key:" + requestInfo.Key);
            Console.WriteLine("Received Body :" + requestInfo.Body);
            //session.Send(string.Format("{0}#;", requestInfo.Body + "||"));
            session.Send(string.Format("Heart##{0}", requestInfo.Body + "||"));
        }
    }
}
